<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/V_small_order_item.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
      :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields"
      :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from "@/extension/mall/V_member_coupon_make.js";
import ViewGrid from "@/components/basic/ViewGrid.vue";
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: "id",
        footer: "Foots",
        cnName: "制券明细表",
        name: "V_member_coupon_make",
        url: "/V_member_coupon_make/",
        sortName: "createDate",
        paginationSize: 99999999,
        paginationHide: true,
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: {
        createDate: "",
        coupon_batch: "",
        coupon_name: "",
        type: "",
        templatename: "",
        coupon_count: "",
        coupon_value: "",
        merchantCode: "",
      },
      searchFormOptions: [
        [
          { title: "券名称", field: "coupon_name", type: "like" },
          {
            title: "券类型",
            dataKey: "Coupon_Type",
            data: [],
            field: "type",
            type: "select",
          },
          { title: "创建时间", field: "createDate", type: "datetime" },
        ],
      ],
      columns: [
        {
          field: "createDate",
          title: "创建时间",
          type: "datetime",
          width: 200,
          align: "left",
          sortable: true,
        },
        {
          field: "coupon_batch",
          title: "批号",
          type: "string",
          width: 220,
          align: "left",
        },
        {
          field: "coupon_name",
          title: "券名称",
          type: "string",
          width: 120,
          align: "left",
        },
        {
          field: "type",
          title: "券类型",
          type: "string",
          width: 120,
          align: "left",
          bind: { key: "Coupon_Type", data: [] },
        },
        {
          field: "templatename",
          title: "券模版名称",
          type: "string",
          width: 120,
          align: "left",
        },
        {
          field: "coupon_count",
          title: "数量",
          type: "string",
          width: 80,
          align: "left",
        },
        {
          field: "coupon_value",
          title: "优惠值",
          type: "string",
          width: 120,
          align: "left",
        },
        //  {field:'merchantCode',title:'商户编码',type:'string',width:120,align:'left'},
      ],
      detail: {
        cnName: "#detailCnName",
        columns: [],
        sortName: "",
        key: "",
      },
    };
  },
};
export default vueParam;
</script>
